import requests

from com.yh.likeshop.urils.utils import like_host


class Cart():
    def addCart(self,item_id,goods_num,token):
        cart = {"item_id": item_id, "goods_num": goods_num}
        resp = requests.post(like_host+"/api/cart/add", json=cart, headers=token)
        return resp


    def queryCart(self):
        pass


    def updateCart(self):
        pass